import Vue from 'vue'
import VueRouter from 'vue-router'
import HomeView from '../views/HomeView.vue'
import myView from'../views/myView.vue'
import publishView from'../views/publishView.vue'
import zhuce from'../views/zhuce.vue'
import seek from'../views/seekView.vue'
import log from'../views/LogView.vue'
import reg from'../views/RegView.vue'

Vue.use(VueRouter)

const routes = [
	{
	  path: '/log',
	  name: 'log',
	  component: log
	},
	{
	  path: '/reg',
	  name: 'reg',
	  component: reg
	},
	{
	  path: '/seek',
	  name: 'seek',
	  component: seek
	},
	{
	  path: '/zhuce',
	  name: 'zhuce',
	  component: zhuce
	},
	{
	  path: '/publish',
	  name: 'publish',
	  component: publishView
	},
	{
	  path: '/my',
	  name: 'my',
	  component: myView
	},
  {
    path: '/',
    name: 'home',
    component: HomeView,
	meta:{
		keep:true
	}
  },
  {
    path: '/about',
    name: 'about',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import(/* webpackChunkName: "about" */ '../views/AboutView.vue')
  }
]

const router = new VueRouter({
  routes
})

export default router
